package com.zk.ppa.service.impl;

import com.zk.ppa.dao.po.MeasureBase;
import com.zk.ppa.dao.repository.MeasureBaseRepository;
import com.zk.ppa.service.MeasureBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author fengq
 */
@Service
public class MeasureBaseServiceImpl implements MeasureBaseService {
    @Autowired
    private MeasureBaseRepository measureBaseRepository;

    @Override
    public Boolean saveMeasureBase(MeasureBase measureBase) {
        return measureBaseRepository.save(measureBase);
    }

    @Override
    public Boolean updateMeasureBaseById(MeasureBase measureBase) {
        return measureBaseRepository.updateById(measureBase);
    }

    @Override
    public Boolean deleteMeasureBaseById(Long id) {
        return measureBaseRepository.removeById(id);
    }

    @Override
    public Boolean deleteBatchBaseByIds(List<Long> ids) {
        return measureBaseRepository.removeByIds(ids);
    }
}
